package com.cloudbroker.bcs.platform.dav.bizapi.service.business.customer.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.EnumValue;
import com.cloudbroker.bcs.common.validatioin.annotation.Length;
import com.cloudbroker.bcs.common.validatioin.annotation.Mobile;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.platform.dav.bizapi.constants.type.BrokerLoginType;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;

public class LoginForm extends HSBCPSVO {
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;
    
    @NotBlank
    @Mobile
    protected String mobile;
    
    @NotBlank
    @Length(max = 64)
    protected String password;
    
    @NotBlank
    @Length(max = 10)
    protected String verify_code;
    
    @NotBlank
    @Length(max = 16)
    protected String verify_base;
    
    @NotBlank
    @EnumValue(enumClass = BrokerLoginType.class)
    protected String login_type;
    
    @Length(max = 32)
    protected String login_ip;
    
    public String getVerify_code() {
        return verify_code;
    }
    
    public void setVerify_code(String verify_code) {
        this.verify_code = verify_code;
    }
    
    public String getVerify_base() {
        return verify_base;
    }
    
    public void setVerify_base(String verify_base) {
        this.verify_base = verify_base;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getMobile() {
        return mobile;
    }
    
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
    
    public String getLogin_type() {
        return login_type;
    }
    
    public void setLogin_type(String login_type) {
        this.login_type = login_type;
    }
    
    public String getLogin_ip() {
        return login_ip;
    }
    
    public void setLogin_ip(String login_ip) {
        this.login_ip = login_ip;
    }
    
    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("LoginForm [mobile=").append(mobile)
                .append(", password=").append(password)
                .append(", verify_code=").append(verify_code)
                .append(", verify_base=").append(verify_base)
                .append(", login_type=").append(login_type)
                .append(", user_token=").append(user_token)
                .append(", tenant_id=").append(tenant_id)
                .append(", login_ip=").append(login_ip)
                .append("]");
        return builder.toString();
    }
    
}
